
var user={
	uuid:'',
	latitude:'',
	longitude:'',
	appVersion:'1.0.0',
	appType:0,
	merchant:1
}

function getUserInfo(){
	let userInfo=uni.getStorageSync('userInfo')
	if(userInfo){
	  let userDic=JSON.parse(userInfo)
	  // #ifdef APP-PLUS ||APP-PLUS-NVUE
	  let result=Object.assign({},user,{uuid:userDic.uuid,appType:0})
	  // #endif
	  // #ifdef MP-WEIXIN
	  console.log("微信")
	  let result=Object.assign({},user,{uuid:userDic.uuid,appType:2})
	  // #endif
	  // #ifdef MP-ALIPAY
	  console.log("支付宝")
	  let result=Object.assign({},user,{uuid:userDic.uuid,appType:7})
	  // #endif
	  return result
	} else {
	  // #ifdef MP-WEIXIN
	  console.log("微信")
	   return Object.assign({},user,{appType:2})
	  // #endif
	  // #ifdef MP-ALIPAY
	  console.log("支付宝")
	  return Object.assign({},user,{appType:7})
	  // #endif
	}
}


export default{
	user,
	getUserInfo:getUserInfo
}

